package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Author yichao
 * Time  2018/4/26 19:18
 * Dest  提交应用到我家
 */

public class UseMyHomeBean implements Parcelable {


private String userId;
private String token;
    private Long prototyperoomid;//样板间id

    public Long getPrototyperoomid() {
        return prototyperoomid;
    }

    public void setPrototyperoomid(Long prototyperoomid) {
        this.prototyperoomid = prototyperoomid;
    }

    List<UseMyHomeInfo> cartlist;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public List<UseMyHomeInfo> getCartlist() {
        return cartlist;
    }

    public void setCartlist(List<UseMyHomeInfo> cartlist) {
        this.cartlist = cartlist;
    }

    public UseMyHomeBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.userId);
        dest.writeString(this.token);
        dest.writeValue(this.prototyperoomid);
        dest.writeTypedList(this.cartlist);
    }

    protected UseMyHomeBean(Parcel in) {
        this.userId = in.readString();
        this.token = in.readString();
        this.prototyperoomid = (Long) in.readValue(Long.class.getClassLoader());
        this.cartlist = in.createTypedArrayList(UseMyHomeInfo.CREATOR);
    }

    public static final Creator<UseMyHomeBean> CREATOR = new Creator<UseMyHomeBean>() {
        @Override
        public UseMyHomeBean createFromParcel(Parcel source) {
            return new UseMyHomeBean(source);
        }

        @Override
        public UseMyHomeBean[] newArray(int size) {
            return new UseMyHomeBean[size];
        }
    };
}
